package iterator;

import item.*;

import java.lang.reflect.Method;

/**
 * @author John Breyssem	1Ba Informatica		r0303394
 * 
 * @author Lars Feyaerts	1Ba Informatica		r0296831
 * 
 * @version	1.3
 *
 */
public abstract class IteratorConditions {

        /**
         * @return
         * 			
         */
        public static Method hasAtLeast() {
                try {
                        Method hasAtLeast = Item.class.getMethod("hasAtleast",Object.class);
                        return hasAtLeast;
                } catch (NoSuchMethodException e) {
                        e.printStackTrace();
                }
                catch(NullPointerException exc){
                	System.out.println("The name of the searched method must be given");
                }
                catch (SecurityException e) {
                        e.printStackTrace();
                }
                return null;
        }
        
        /**
         * @return
         * 			
         */
        public static Method allElements() {
                try {
                        Method allElements = Item.class.getMethod("getIsOnABoard");
                        return allElements;
                } catch (NoSuchMethodException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                } catch (SecurityException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                }
                return null;
        }
}